l = [1,2,3,4,5,6,7,8,9]
new_list = []
def fn(i):
        if i % 2 == 0 :
            return True
        return False        

def fn2(i):
        if i % 2 != 0 :
            return True
        return False       

def fn3(i):
        if i > 5 :
            return True
        return False        
def fg(x,a):
    for i in a :
        if x(i)  :

            new_list.append(i)
    return new_list
print(fg(fn3,l))
# print(l)
# fg(l)
